<?php echo $this->Form->create('categorias', array('action' => 'categorias')); ?>
<div class="widget">
    <div class="whead"><h6>LISTADO DE CATEGORIAS</h6><div class="clear"></div></div>
    <div class="shownpars">
        <table cellpadding="0" cellspacing="0" border="0" class="dTable">
            <thead>
                <tr>
                    <th>Numero</th>
                    <th>Nombre</th>
                    <th>Descripcion</th>
                    <th>Acciones</th> 
                </tr>
            </thead>
            <tbody>
                <?php $i = 1; ?>
                <?php foreach ($categorias as $cate): ?>
                <tr class="gradeX">
                <td><?php echo $i; $i++; ?></td>
                <td><?php echo $cate['Categoria']['nombre'];?></td>
                <td><?php echo $cate['Categoria']['descripcion'];?></td>                                    
                <td><?php echo $this->Html->link('EDITAR',array('action'=>'editar',$cate['Categoria']['id']));?>                                      
                <?php echo $this->Html->link('ELIMINAR',array('action'=>'eliminar',$cate['Categoria']['id']),null,('Desea aliminar este Documento.....!!!!!?')); ?></td>
                </tr>
                <?php endforeach; ?>                
            </tbody>
        </table>
    </div> 
</div>    

<?php echo $this->Html->link('INSERTAR NUEVA CATEGORIA',array('action'=>'insertar'),array('class'=>'buttonS bGreen '));?>



